/*	Brian Kirkpatrick
	String Dictionary class
	Begun 6/30/2010
*/

#ifndef STRING_DICTIONARY_H
#define STRING_DICTIONARY_H

#include <string>
#include <stdio.h>
using std::string;

class stringDict {
private:
	int size;
	string * keys;
	string * values;
protected:
public:
	// Constructors
	stringDict();
	stringDict(stringDict &sd);
	~stringDict();

	// Operators
	string operator[](int ndx);
	string operator[](string key);
	stringDict & operator=(const stringDict &operand);

	// Methods
	void print();
	void set(string key, string value);
	int find(string key);
	bool inDict(string value);
	int getSize();
	string get(string key);
	string getKey(int ndx);
	string getValue(int ndx);
};

#endif